import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.Locale;

import common.Token;

import lexer.Lexer;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader in = new BufferedReader(new FileReader("input.txt"));
		Lexer lex = new Lexer(in);
		ArrayList<Token> list = new ArrayList<Token>();
		while (true) {
			Token cur = lex.yylex();
			if (!cur.isEOF()) {
				list.add(cur);
			} else {
				break;
			}
		}
		for (Token t : list) {
			System.out.println(t);
		}
	}
}

